local t = require('utils.table')
local m = require('utils.color')

return {
  "lukas-reineke/indent-blankline.nvim",
  tag = "v2.20.8",
  config = function()
    local hl_list = {}
	local hideC = m.bg_indent
    local c = m.fg_indent

    t.foreach({ hideC,c,c,c,c,c,c,c,c,c,hideC,hideC,hideC,hideC},function(color,i)
      local name = 'IndentBlanklineIndent' .. i
      vim.api.nvim_set_hl(0, name, { fg = color, bg = color })
      t.append(hl_list, name)
    end)  -- >10 use hideC (to 14)
    require('indent_blankline').setup {
      char_highlight_list = hl_list,
      show_first_indent_level = false,  -- 不显示第一级缩进线
    }
  end,
}
-- Thanks:https://www.reddit.com/r/neovim/comments/yb1hcc/rainbow_indent_guides_like_vscode/
-- EOP
